package com.cw.jeeyt.service.intf.process;

import java.util.List;

import com.cw.jeeyt.common.Order;
import com.cw.jeeyt.service.bo.process.ProcessLeaveBo;
import com.cw.lang.mybatis.dto.PageInfo;

/**
 * 请假流程业务接口
 *
 * @author chenw
 * @date 2019-03-10 20:55:56
 */
public interface ProcessLeaveService {
    /**
     * 查询所有请假流程列表信息
     */
    List<ProcessLeaveBo> queryProcessLeaveList() throws Exception;

    /**
     * 删除请假流程
     *
     * @param processLeaveBo
     */
    void delete(ProcessLeaveBo processLeaveBo) throws Exception;

    /**
     * 更新请假流程
     *
     * @param processLeaveBo
     */
    void update(ProcessLeaveBo processLeaveBo) throws Exception;

    /**
     * 更新请假流程不为空的字段
     *
     * @param processLeaveBo
     */
    void updateSelective(ProcessLeaveBo processLeaveBo) throws Exception;

    /**
     * 根据主键查询请假流程
     *
     * @return
     */
    ProcessLeaveBo getProcessLeaveById(String id) throws Exception;

    /**
     * 新增请假流程
     *
     * @param processLeaveBo
     * @return
     */
    Integer insert(ProcessLeaveBo processLeaveBo) throws Exception;

    /**
     * 新增请假流程不为空的字段
     *
     * @param processLeaveBo
     * @return
     */
    Integer insertSelective(ProcessLeaveBo processLeaveBo) throws Exception;

    /**
     * 分页查询请假流程
     *
     * @param processLeaveBo
     * @param startNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    PageInfo<ProcessLeaveBo> queryByPage(ProcessLeaveBo processLeaveBo, Integer startNum, Integer pageSize, Order order)
    throws Exception;
}
